
import json

with open('class.json') as f:
  data = json.load(f)

# 这就是个字典
print(type(data))

# 打印所有信息
print('=========')
print(data)

# 打印老师信息
print('=========')
print(data['teacher'])

# 打印麦叔选修的课
print('=========')
print(data['students'][2]['选修课'])